TARGET = jpeglib
TEMPLATE = lib

CONFIG += staticlib
CONFIG -= app_bundle
CONFIG -= qt

CONFIG(debug, debug|release) {
    BUILD_DIR = $$PWD/../../Build/Tools/Debug
    TARGET = $$join(TARGET,,,_d)
} else {
    BUILD_DIR = $$PWD/../../Build/Tools/Release
}
contains(TEMPLATE, "lib") {
    DESTDIR = $$BUILD_DIR/lib
    DLLDESTDIR = $$BUILD_DIR/bin
} else {
    DESTDIR = $$BUILD_DIR/bin
}

UI_DIR = $$BUILD_DIR/build/ui/$$TARGET
OBJECTS_DIR = $$BUILD_DIR/build/obj/$$TARGET
MOC_DIR = $$BUILD_DIR/build/moc/$$TARGET
RCC_DIR = $$BUILD_DIR/build/rcc/$$TARGET


INCLUDEPATH += ./include/

SOURCES += \
    source/SEGMENT.C \
    source/RGB.C \
    source/QUANTY.C \
    source/pack.c \
    source/JPEG.C \
    source/IDCT2D.C \
    source/IDCT.C \
    source/HUFFMAN.C \
    source/decode.c \
    source/compress.c \
    source/BMP.c

HEADERS += \
    include/JPEGINT.H \
    include/JPEG.H

